package me.wangqu.weiyouqu.web.rest.business.dao;

import me.wangqu.weiyouqu.web.rest.business.model.WithdrawAccount;
import me.wangqu.weiyouqu.web.rest.business.model.WithdrawModel;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by joln on 2016/6/25.
 */
public interface WithDrawDao {
    /**
     * 获取帐户余额及支付宝信息(微信提现后期实现) - 用于提现流程
     *
     * @param login
     * @return
     */
    WithdrawAccount getSelfCashAccount(String login);

    /**
     * 获取提现列表
     *
     * @param pageable
     * @return
     */
    List<WithdrawModel> getSelfWithdraws(String login, Pageable pageable);

    /**
     * 判断支付宝是否已经设置
     *
     * @param login
     * @return
     */
    boolean isSelfRealName(String login);

    /**
     * 设置帐户信息
     *
     * @param model
     * @return
     */
    boolean setSelfCashAccount(WithdrawModel model, String login);

    /**
     * 提现操作
     * @param model
     * @param login
     * @return
     */
    boolean postSelfWithdraw(WithdrawModel model, String login);

}
